#include <stdio.h>
int main()
{
    int a, b;
    int t;
    scanf("%d", &t);
    while (t--)
    {
        scanf("%d%d", &a, &b);
        if(a == b)
        {
            printf("These numbers are equal.\n");
        }
        else
        {
            printf("%d\n", a > b ? a : b);
        }
    }
    return 0;
}
